// 自定义中间件
const querystring = require("querystring");

module.exports = {
  aaa: () => {
    return (req, res, next) => {
      var str = "";
      req.on("data", function (data) {
        str += data;
      });
      req.on("end", function () {
        req.body = querystring.parse(str);

        next();
      });
    };
  },
};
